//
//  RrecommendVC.m
//  BCW
//
//  Created by Mac on 16/3/30.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "RrecommendVC.h"
#import "RecommendCell.h"
#import "UIBarButtonItem+CustomItem.h"

@interface RrecommendVC ()

@end

@implementation RrecommendVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"推荐应用";
    self.navigationController.navigationBar.barTintColor = ThemeColor;
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithImage:@"return" hightImage:@"return" target:self action:@selector(popViewController:)];
    
    self.tableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStyleGrouped];
 
    
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 180, 30)];
    
    label.text = @"敬请期待！";
    label.textAlignment = 1;
    [self.view addSubview:label];
    label.center = self.view.center;
    
}



- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {

    return 0;
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    static NSString *ID = @"recommendCell";
    RecommendCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (!cell) {
        cell = [[NSBundle mainBundle] loadNibNamed:@"RecommendCell" owner:nil options:nil].firstObject;
    }
    
    cell.recommendModel = nil;
    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 66;
}

- (void)popViewController:(id)sender{
    [self dismissViewControllerAnimated:YES completion:nil];
}
@end
